home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2001 May / SGI Freeware 2001 May - Disc 1.iso / dist / fw_teTeX.idb / usr / freeware / bin / allcm.z / allcm (.txt)
LaTeX Document  |  2001-01-10  |  3KB  |  84 lines

  1. #!/bin/sh
  2. test -f /bin/sh5 && test -z "$RUNNING_SH5" \
  3.   && { UNAMES=`uname -s`; test "x$UNAMES" = xULTRIX; } 2>/dev/null \
  4.   && { RUNNING_SH5=true; export RUNNING_SH5; exec /bin/sh5 $0 ${1+"$@"}; }
  5. unset RUNNING_SH5
  6. test -f /bin/bsh && test -z "$RUNNING_BSH" \
  7.   && { UNAMES=`uname -s`; test "x$UNAMES" = xAIX; } 2>/dev/null \
  8.   && { RUNNING_BSH=true; export RUNNING_BSH; exec /bin/bsh $0 ${1+"$@"}; }
  9. unset RUNNING_BSH
  10. progname=`basename $0`
  11. case "$progname" in
  12.   allec)
  13.     encoding=T1;;
  14.     encoding=OT1;;
  15. case "$1" in
  16.   -r)
  17.     DVIPS=dvired
  18.     shift
  19.     ;;
  20.     DVIPS=dvips
  21.     ;;
  22. body()
  23.   cat <<-'eof'
  24.     \pagestyle{empty}
  25.     \parindent0in
  26.     \hfuzz=\maxdimen
  27.     \hbadness=10000
  28.     \textheight9.5in
  29.     \textwidth6.5in
  30.     \newcommand{\myformula}{\sum a_{b_{c_d}} = c}
  31.     \newcommand{\mytext}{text $\mathcal{\myformula}\mathrm{\myformula}
  32.     \mathbf{\myformula}\mathsf{\myformula}\mathtt{\myformula}
  33.     \mathnormal{\myformula}\mathit{\myformula}$}
  34.     \newcommand{\TestSizes}{{%
  35.     \tiny \mytext\scriptsize \mytext\footnotesize \mytext\small \mytext
  36.     \normalsize \mytext
  37.     \large \mytext\Large \mytext\LARGE \mytext\huge \mytext\Huge \mytext}}
  38.     \newcommand{\TestRM}{rm-family: {\rmfamily\TestSizes}\newline}
  39.     \newcommand{\TestSF}{sf-family: {\sffamily\TestSizes}\newline}
  40.     \newcommand{\TestTT}{tt-family: {\ttfamily\TestSizes}\newline}
  41.     \newcommand{\TestFamilies}{\TestRM\TestSF\TestTT\newline}
  42.     \newcommand{\TestMD}{md-series: {\mdseries\TestFamilies}}
  43.     \newcommand{\TestBF}{bf-series: {\bfseries\TestFamilies}}
  44.     \newcommand{\TestSeries}{\TestBF\TestMD\par}
  45.     \newcommand{\TestUP}{up-shape: {\upshape\TestSeries}\par}
  46.     \newcommand{\TestIT}{it-shape: {\itshape\TestSeries}\par}
  47.     \newcommand{\TestSL}{sl-shape: {\slshape\TestSeries}\par}
  48.     \newcommand{\TestSC}{sc-shape: {\scshape\TestSeries}\par}
  49.     \newcommand{\TestShapes}{\TestUP\TestIT\TestSL\TestSC}
  50.     \begin{document}
  51.     \TestShapes
  52.     \end{document}
  53. head()
  54.   echo '\documentclass['$1'pt]{article}'
  55.   echo '\usepackage['$encoding']{fontenc}'
  56. cd /tmp
  57. mkdir tmp$$ && cd tmp$$ || exit
  58. trap "cd / ; rm -rf /tmp/tmp$$; trap '' 0; exit 0" 0 1 2 15
  59. echo >&2
  60. echo "---------------------------------------------------------------------" >&2
  61. echo ">>>>>>>>>>>  Generating testfiles for 10pt, 11pt and 12pt. <<<<<<<<<<" >&2
  62. echo "---------------------------------------------------------------------" >&2
  63. head 10 > allcm10.tex
  64. head 11 > allcm11.tex
  65. head 12 > allcm12.tex
  66. body >> allcm10.tex
  67. body >> allcm11.tex
  68. body >> allcm12.tex
  69. echo >&2
  70. echo "---------------------------------------------------------------------" >&2
  71. echo ">>>>>>>>>>>  Calling latex...                              <<<<<<<<<<" >&2
  72. echo "---------------------------------------------------------------------" >&2
  73. latex allcm10 >/dev/null
  74. latex allcm11 >/dev/null
  75. latex allcm12 >/dev/null
  76. echo >&2
  77. echo "---------------------------------------------------------------------" >&2
  78. echo ">>>>>>>>>>>  Now, calling $DVIPS to make missing fonts...  <<<<<<<<<<" >&2
  79. echo "---------------------------------------------------------------------" >&2
  80. $DVIPS ${1+"$@"} -f allcm10 > /dev/null
  81. $DVIPS ${1+"$@"} -f allcm11 > /dev/null
  82. $DVIPS ${1+"$@"} -f allcm12 > /dev/null
  83. rm -rf /tmp/tmp$$
  84.